package com.sg.dto.biz.framework.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc CurrentUserRecordTributPowerDto
 * @使用场景
 */
@Data
public class CurrentUserRecordTributPowerDto extends BaseDto implements Serializable {

    /**
     * 权限分配ID
     */
    @ApiModelProperty("权限分配ID")
    private String privacyDistributionId;

    /**
     * 权限ID
     */
    @ApiModelProperty("权限ID")
    private String privacyId;

    /**
     * 权限标识
     */
    @ApiModelProperty("权限标识")
    private String privacyCode;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        CurrentUserRecordTributPowerDto that = (CurrentUserRecordTributPowerDto) o;
        return privacyDistributionId == that.privacyDistributionId && privacyId == that.privacyId && privacyCode == that.privacyCode;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), privacyDistributionId, privacyId, privacyCode);
    }


}
   